package com.punch.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punch.common.vo.system.category.CategoryTreeVO;
import com.punch.course.model.CourseCategroy;

import java.util.List;


/**
 * @author Liang
 */
public interface CategoryService extends IService<CourseCategroy> {

    /**
     * 查询课程分类
     * @return
     */
    List<CategoryTreeVO> treeCategory();

    /**
     * 根据课程分类名称查询课程分类id
     * @param categoryName 课程分了名称
     * @return
     */
    List<CourseCategroy> findCategoryIdByName(String categoryName);
}
